<?php 

require __DIR__ .  './../vendor/autoload.php';

require '../helpers.php';

// spl_autoload_register(function($class) {
//   $path = basePath('Framework/' . $class . '.php');
//   if(file_exists($path)){
//       require $path;
//   }
// });
use Framework\Router;

$router = new Router();
$routers = require basePath('routes.php');



$uri = parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH);
$method =$_SERVER['REQUEST_METHOD'];


$router->route($uri,$method);
// inspect($uri);
// inspect($method);

// require basePath('router.php');
